package base.Day04;
public class MultiTable
{
    public static void main(String[] args)
    {
        MultiTable multiTable = new MultiTable();
//        multiTable.print();
        multiTable.forFor();
        System.out.print("1"+'\t');
        System.out.print("2"+"\t");
        System.out.println("我抄");
    }


    void print()
    {
        int num = 5;
        for (int i = 1 ; i <= num; i++)
        {
            System.out.print(i + "*" + num +"="+ i*num+"\t");
        }

        System.out.println();
        int num1= 11;
        for (int j = 1 ; j <= num1; j++)
        {
            System.out.print(j + "*" + num1 +" = " +j*num1+"\t");
        }
        System.out.println();


        int num2 = 111;
        for (int j = 1; j <= num2 ; j++)
        {
            System.out.print(j +"*"+num2+"="+j*num2 + "\t");
        }
        System.out.println();

    }



    void forFor()
    {
        for (int num = 1 ; num <=9 ;num++)
        {
            for (int j = 1 ;j<=num;j++)
            {
                //    \t 占八位     将整句输出设置为8位
                System.out.print(num+"*"+j+"="+num*j+"\t");
            }
            System.out.println();
        }
    }




}
